package com.boom.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.boom.pojo.User;

public interface UserService {
     /**
     * 根据id查询用户是否存在
     * @param wrapper
     * @return
     */
    public User getUser(QueryWrapper<User> wrapper);


    IPage<User> getUserList(String queryName, Integer queryUserRole, Integer currPageNo, int pageSize);

    User getUserById(String id);

    int insertUser(User user);

    int updateUser(User user);

    int deleteUser(int id);
}
